#include <stdio.h>
#include "person.h"


void Person::setName(char *name) 
{
	this->name = name ;
}

int Person::setAge(int age) 
{
	if(age < 0 || age > 150)
	{
		this->age =0 ;
		return -1;
	}
	this->age = age ;
	return 0;
}

void Person::printInfo()
{
	printf("name = %s, age =%d, work =%s\n",name,age,work);
}

















